//导入request.js工具
import request from "@/utils/request";
//调用注册接口的函数

//企业登陆接口
export const EnterpriseLoginService = ({ username, password }) => {
  return request.post(
    "/enterprise",
    {},
    {
      params: {
        username: username,
        password: password,
      },
    }
  );
};
//企业营业信息填报
export const businessInformation = (form) => {
  return request.post("/register/business", form);
};
//采矿信息填报
export const miningInformation = (form) => {
  return request.post("/register/mining", form);
};
//安全生产许可信息填报
export const safetyProductionInformation = (form) => {
  return request.post("/register/safetyproduction", form);
};
//安全生产标准信息填报
export const safetyStandardsInformation = (form) => {
  return request.post("/register/safetystandards", form);
};
//安全生产标准化证书信息填报
export const safetyCertificateInformation = (form) => {
  return request.post("/register/safetycertificate", form);
};
//“三同时”相关资料及第三方资料
export const thirdPartyInformation = (form) => {
  return request.post("/register/thirdParty", form);
};
// 查询图

export const getOrganizational = () => {
  return request.get("/enterprise/organizational");
};
// 修改图
export const updateOrganizational = (name, url) => {
  return request.post(
    "/enterprise/organizational",
    {},
    { params: { name: name, url: url } }
  );
};
